from flask import Flask, flash, get_flashed_messages

app = Flask(__name__)
app.secret_key = "sdsdafsdf"
@app.route('/get')
def get():
    data = get_flashed_messages()
    print(data)
    return 'Hello World'

@app.route('/set')
def set():
    flash("撒点分撒旦了")
    return 'Hello World'
if __name__ == '__main__':
    app.run()